Prime Factor in data structure